<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <title>欢迎使用领捷智慧物流管理系统</title>
    <link rel="hshortcut icon" href="../static/img/own/head.png"/>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
    <link rel="stylesheet" href="/static/fonts/fontawesome-all.min.css">
</head>

<body>
<div id="wrapper">
    <div class="d-flex flex-column" id="content-wrapper">
        <div id="content">
            <div class="container border rounded" style="min-width: 100%;width: auto;margin-bottom: 0px;padding: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;height: auto;margin-right: 0px;">
                <div class="row" style="margin-right: 0px;margin-left: 0px;">
                    <div class="col" style="margin-left: 24px;padding: 13px;background: #ffffff;margin-right: 24px;"><span style="font-size: 25px;color: rgb(0,0,0);padding-left: 0px;">填写信息：</span></div>
                </div>
            </div>
            <div class="container border rounded" style="min-width: 100%;width: auto;margin-bottom: 0px;padding: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;height: auto;margin-right: 0px;">
                <form action="/user/updateuser" method="post" onsubmit="return fabu(this)" class="border rounded d-inline-flex flex-column justify-content-start justify-content-xl-start" style="background: #ffffff;margin-right: 24px;margin-left: 24px;opacity: 1;margin-top: 4px;padding: 12px;width: 1038px;"><span style="font-size: 18px;color: rgb(0,0,0);margin-left: 21px;margin-top: 0px;padding: 0px;padding-top: 0px;width: auto;">基本信息</span>
                    <div class="form-group text-monospace text-center d-inline-flex justify-content-center visible" style="width: auto;padding-right: 0px;"
                         placeholder="请输入账号"><span style="color: rgb(0,0,0);font-size: 16px;line-height: 40px;">&nbsp;账号&nbsp;</span><input class="form-control" type="number" style="width: 350px;margin-left: 10px;" placeholder="请输入账号" th:value="${uid}" name="uid" readonly></div>
                    <div class="form-group text-monospace text-center d-inline-flex justify-content-center visible" style="width: auto;padding-right: 0px;"
                         placeholder="请输入密码"><span style="color: rgb(0,0,0);font-size: 16px;line-height: 40px;">&nbsp;密码&nbsp;</span><input class="form-control" type="text" style="width: 350px;margin-left: 10px;" placeholder="请输入密码" th:value="${upassword}" name="upassword"></div>
                    <div class="form-group text-monospace text-center d-inline-flex justify-content-center"
                         style="height: auto;margin-left: 0px;margin-right: 0px;width: auto;max-height: 100%;padding-left: 0px;"><span style="color: rgb(0,0,0);line-height: 40px;">用户名</span><input class="form-control" type="text" style="width: 350px;margin-left: 10px;" placeholder="请输入用户名" th:value="${uname}" name="uname"></div>
                    <div class="form-group text-monospace text-center d-inline-flex justify-content-center" style="height: auto;margin-left: 0px;margin-right: 0px;width: auto;max-height: 100%;padding-left: 0px;">
                        <span style="color: rgb(0,0,0);line-height: 40px;">用户类型</span>
                        <select class="form-control" style="width: 350px;margin-left: 10px;" name="utype" id="utype">
                            <option value="100">请选择</option>
                            <option value="0">超级管理员</option>
                            <option value="1">配送员</option>
                        </select>
                    </div>
                    <div class="form-group text-monospace text-center d-inline-flex justify-content-center"
                         style="height: auto;margin-left: 0px;margin-right: 0px;width: auto;max-height: 100%;padding-left: 0px;"><span style="color: rgb(0,0,0);line-height: 40px;">用户信息</span><input class="form-control" type="text" style="width: 350px;margin-left: 10px;" placeholder="请输入用户信息" th:value="${uinfo}" name="uinfo"></div>
                    <div class="form-group text-monospace text-center d-inline-flex justify-content-center"
                         style="height: auto;margin-left: 0px;margin-right: 0px;width: auto;max-height: 100%;padding-left: 0px;"><button class="btn btn-primary" style="width: 80px;" type="submit" value="fabu">发布</button><button class="btn btn-primary" type="button" style="width: 80px;margin-left: 10px;" id="fanhui">返回</button></div>
                </form>
            </div>
        </div>
        <footer class="bg-white sticky-footer">
            <div class="container my-auto">
                <div class="text-center my-auto copyright"><span>鄂ICP备2021022432号</span></div>
            </div>
        </footer>
    </div><a class="border rounded d-inline scroll-to-top" href="#page-top"><i class="fas fa-angle-up"></i></a></div>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/js/chart.min.js"></script>
<script src="/static/js/bs-init.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.js"></script>
<script src="/static/js/theme.js"></script>
<script src="/static/js/jquery.session.js"></script>


<script>

    // 跳转用户页面
    $(function (){
        $("#fanhui").click(function (){
            $(location).attr("href","/page/toUser")
        })
    })

    function fabu(formvalue){
        var uid = formvalue.uid.value;
        var upassword = formvalue.upassword.value;
        var utype = formvalue.utype.value;

        var isSubmit = true;
        if(""==uid||""==upassword||100==utype){
            isSubmit = false;
        }
        if(!isSubmit){
            alert("账号或密码或用户类型不能为空！");
            return false;
        }
    }

    //session
    $.session.set("url",window.location.href);
</script>
</body>

</html>